<?php

if (isset($_SERVER['HTTP_HOST']) && isset($_SERVER['REQUEST_URI'])) {

    $http_host = $_SERVER['HTTP_HOST'];
    define('IS_WAP_REQUEST', stripos($http_host, 'wap') !== false ? true : false);

}

// comment out the following two lines when deployed to production
$env = require(__DIR__ . '/../config/env.php');

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';

$config = require __DIR__ . '/../config/web.php';

(new yii\web\Application($config))->run();
